home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / www / library / implemen / html.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  2.0 KB  |  83 lines

  1. /*                                                     HTML to rich text converter for libwww
  2.                              THE HTML TO RTF OBJECT CONVERTER
  3.                                              
  4.    This interprets the HTML semantics.
  5.    
  6.  */
  7. #ifndef HTML_H
  8. #define HTML_H
  9.  
  10. #include "HTUtils.h"
  11. #include "HTAnchor.h"
  12. #include "HTMLDTD.h"
  13.  
  14. #ifdef SHORT_NAMES
  15. #define HTMLPresentation        HTMLPren
  16. #define HTMLPresent             HTMLPres
  17. #endif
  18.  
  19. extern CONST HTStructuredClass HTMLPresentation;
  20.  
  21. /*
  22.  
  23. HTConverter to present HTML
  24.  
  25.  */
  26. PUBLIC HTStream* HTMLToPlain PARAMS((
  27.         HTPresentation *        pres,
  28.         HTParentAnchor *        anchor,
  29.         HTStream *              sink));
  30.  
  31. PUBLIC HTStream* HTMLToC PARAMS((
  32.         HTPresentation *        pres,
  33.         HTParentAnchor *        anchor,
  34.         HTStream *              sink));
  35.  
  36. PUBLIC HTStream* HTMLPresent PARAMS((
  37.         HTPresentation *        pres,
  38.         HTParentAnchor *        anchor,
  39.         HTStream *              sink));
  40.  
  41. extern HTStructured* HTML_new PARAMS((
  42.         HTParentAnchor * anchor,
  43.         HTFormat        format_out,
  44.         HTStream *      target));
  45.  
  46. /*      Names for selected internal representations:
  47. */
  48. typedef enum _HTMLCharacterSet {
  49.         HTML_ISO_LATIN1,
  50.         HTML_NEXT_CHARS,
  51.         HTML_PC_CP950
  52. } HTMLCharacterSet;
  53.  
  54. extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i));
  55.  
  56. /*
  57.  
  58. Record error message as a hypertext object
  59.  
  60.    The error message should be marked as an error so that it can be reloaded later. This
  61.    implementation just throws up an error message and leaves the document unloaded.
  62.    
  63.  */
  64. /* On entry,
  65. **      sink    is a stream to the output device if any
  66. **      number  is the HTTP error number
  67. **      message is the human readable message.
  68. ** On exit,
  69. **      a retrun code like HT_LOADED if object exists else 60; 0
  70. */
  71.  
  72. PUBLIC int HTLoadError PARAMS((
  73.         HTStream *      sink,
  74.         int             number,
  75.         CONST char *    message));
  76.  
  77. #endif
  78.  
  79.  
  80. /*
  81.  
  82.     */
  83.